package com.sc.VenusQueryBeta.contract.account.xiadaikuan;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.hengjun.kingstar.sdk.base.IBaseView;
import com.sc.VenusQueryBeta.model.bean.account.AllRoomListBean;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.xiadaikuan.XiaDaiKuan01Bean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/10/21.
 * 下线贷款01Contract
 */

public interface XiaDaiKuan01Contract {
    abstract class XiaDaiKuan01Presenter extends BasePresenter<IXiaDaiKuan01Model,IXiaDaikuan01View> {
        //加载下线贷款01
        public abstract void getXiaDaiKuan01(String serverAddress, String projectName, int serverPort, int clientindex,
                                             String currencynameCN);

        //查询厅(根据账房那边排序)
        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);
    }
     interface IXiaDaiKuan01Model extends IBaseModel {
         //贷款明细
         Observable<XiaDaiKuan01Bean> getXiaDaiKuan01(String serverAddress, String projectName, int serverPort, int clientindex,
                                                      String currencynameCN);
         //查询厅(根据账房那边排序)
         Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);
     }
     interface IXiaDaikuan01View extends IBaseView {
         /**
          *获下线贷款01數據成功
          * @param xiaDaiKuan01Bean
          */
         void showXiaDaikuanData1Success(XiaDaiKuan01Bean xiaDaiKuan01Bean);

         void showNetworkError(Throwable throwable);

         //查询厅(根据账房那边排序)
         void showqueryAllCurrencyList(CurrencyListBean currencyListBean);

     }
}
